window.config={
//	host:"http://192.168.1.123:8030"
	//host:"http://192.168.1.103:81",
	host:"http://cherry.guojinkj123.com",
  ws_url:"ws://cherry.guojinkj123.com:9509"
}
var token = localStorage.getItem('token');
if(token) {
	mui.ajax(config.host + '/home/Index/index', {
		dataType: 'json', //服务器返回json格式数据
		type: 'get', //HTTP请求类型
		headers: {
			'token': token
		},
		success: function(data) {
			if(data.code == 1) {
				location.href = 'login.html'
				mui.toast('你的账号在别的设备登录，请重新登陆')
			}
		}

	});
} else {
	location.href = './denglu.html'
	mui.toast(data.msg);
}